#! /bin/bash

# ############################################
#   										 #
#				Svn Goat UpdatooR.			 #
#											 #
# ############################################
#											 #
# 				2011.24.02 					 #
#	 	Mirail University Copyrighted		 #
#											 #
# Authors									 #
# -------									 #
# 		Nicolas Buffon						 #
# 		Jean-Christophe Ricard				 #
#											 #
# Version									 #
# -------									 #
#		1.01 - Log changes					 #
#				* Countdown added.			 #
#											 #
#		1.00 - Log changes					 #
#				* Svn update added.			 #
# ############################################

while(true)
do
	svn update
	echo "Prochain update dans 3 minutes."
	sleep 60
	echo "Prochain update dans 2 minutes."
	sleep 60
	echo "Prochain update dans 1 minute."
	sleep 30
	echo "Prochain update dans 30 secondes."
	sleep 20
	echo "Prochain update dans 10..."
	sleep 1
	echo "9..."
	sleep 1
	echo "8..."
	sleep 1
	echo "7..."
	sleep 1
	echo "6..."
	sleep 1
	echo "5..."
	sleep 1
	echo "4..."
	sleep 1
	echo "3..."
	sleep 1
	echo "2..."
	sleep 1
	echo "1..."
	echo "UPDATE READY."
done